package house

type cottagesBuilder struct {
	windowType string
	doorType   string
	swimPool   string
	floor      int
}

func newCottagesBuilder() *cottagesBuilder {
	return &cottagesBuilder{}
}

func (b *cottagesBuilder) setWindowType() {
	b.windowType = "高级窗户"
}

func (b *cottagesBuilder) setDoorType() {
	b.doorType = "高级门"
}

func (b *cottagesBuilder) setNumFloor() {
	b.floor = 1
}

func (b *cottagesBuilder) setSwimPool() {
	b.swimPool = "大泳池"
}

func (b *cottagesBuilder) getHouse() House {
	return House{
		doorType:   b.doorType,
		windowType: b.windowType,
		swimPool:   b.swimPool,
		floor:      b.floor,
	}
}
